package cn.caplike.demo.shiro.eventbus;

import lombok.extern.slf4j.Slf4j;
import org.apache.shiro.event.Subscribe;

/**
 * Description: 参与者.
 *
 * @author LiKe
 * @version 1.0.0
 * @date 2021-06-04 14:22
 */
@Slf4j
@SuppressWarnings("unused")
public class PizzaParticipant {

    /**
     * 只接收 {@link PizzaAvailableEvent}
     */
    @Subscribe
    public void onEvent(PizzaAvailableEvent event) {
        log.info("I do like Pizza: {}", event.getTopic());
    }

}
